{% extends 'manage/base_manage.html' %}
{% load static %}
{% block title %}添加产品{% endblock %}


{% block css %}
    <link rel="stylesheet" href="{% static 'css/product/product_add.css' %}">
{% endblock %}

{% block content %}
    <div class="content">
        <div id="product_content">
            <h3 id="add_product_name">添加产品</h3>
            <div id="product_name">
                <form id="product_input" method="post" action="{% url 'atp:product_add' %}">
                    {% csrf_token %}
                    <div class="form-group">
                        <label id='product_name_distance' for="p_name_input">产品名称：</label>
                        <br><br>
                        <input name="product_name" type="text" class="form-control" id="p_name_input"
                               placeholder="输入产品名称" required="required">
                        <p style="color: red">{{ msg_pro_name }}</p>
                    </div>
                    <div class="form-group">
                        <label id='product_name_distance' for="p_des_input">产品描述：</label>
                        <br><br>
                        <input name="product_desc" type="text" class="form-control" id="p_des_input"
                               placeholder="输入产品描述" required="required">
                    </div>
                    <div class="form-group">
                        <label id='product_name_distance' for="p_er_input">产品负责人：</label>
                        <br><br>
                        <input name="product_er" type="text" class="form-control" id="p_er_input" placeholder="输入产品负责人"
                               required="required">
                    </div>
                    <button type="submit" class="btn" onclick="btn_add()">保存</button>
                </form>
            </div>
        </div>
    </div>
{% endblock %}

